package com.snpic.appaw.module.third.api.bjpt;

import com.snpic.appaw.framework.common.pojo.CommonResult;
import com.snpic.appaw.module.third.api.bjpt.dto.*;
import com.snpic.appaw.module.third.api.bjpt.dto.iSPolicyQuery.ISPolicyQueryDetailResDTO;
import com.snpic.appaw.module.third.api.bjpt.dto.iSPolicyQuery.ISPolicyQueryMainRequest;
import com.snpic.appaw.module.third.api.deepOCR.dto.VehicleLicenseReqDTO;
import com.snpic.appaw.module.third.api.deepOCR.dto.VehicleLicenseRespDTO;
import com.snpic.appaw.module.third.service.bjpt.BJPTInvocationService;
import jakarta.annotation.Resource;
import jakarta.validation.Valid;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JiJun
 * @date 2025/9/16 18:08
 * @修改时间 2025/9/16 18:08
 * @description
 */
@RestController // 提供 RESTful API 接口，给 Feign 调用
@Validated
public class BJPTApiImpl implements BJPTApi {
	@Resource
	private BJPTInvocationService bjptInvocationService;
	/**
	 * 车辆车型查询接口
	 * @param reqDTO
	 */
	@Override
	public CommonResult<CarModelInfoInquiryRespTotalDto> carModelInfoInquiry(@RequestBody @Valid CarModelInfoInquiryReqTotalDto reqDTO) {
		return bjptInvocationService.carModelInfoInquiry(reqDTO);
	}

	/**
	 * 历史保单查询
	 * @param reqDTO
	 * @return
	 */
	@Override
	public CommonResult<QueryHisPolicyDetailRespTotalDto> queryHisPolicyDetail(QueryHisPolicyDetailReqTotalDto reqDTO) {
		return bjptInvocationService.queryHisPolicyDetail(reqDTO);
	}
}
